package model;

public class MenuItem {
    private int itemID;
    private int storeID; // 门店ID
    private String itemName; // 餐点名称
    private String itemType; // 餐点类型（Pizza, Drink, Dessert等）
    private double price; // 价格

    public MenuItem(int itemID, int storeID, String itemName, String itemType, double price) {
        this.itemID = itemID;
        this.storeID = storeID;
        this.itemName = itemName;
        this.itemType = itemType;
        this.price = price;
    }

    // Getters and Setters
    public int getItemID() {
        return itemID;
    }

    public void setItemID(int itemID) {
        this.itemID = itemID;
    }

    public int getStoreID() {
        return storeID;
    }

    public void setStoreID(int storeID) {
        this.storeID = storeID;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemType() {
        return itemType;
    }

    public void setItemType(String itemType) {
        this.itemType = itemType;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String toString() {
        return  itemName ;
    }
}